<?php if (!($this->canEnable($this->get('module')))): ?><div >

  <?php if ($this->get('module')->getDependencies()): ?><div  class="note dependencies">
    <?php echo func_htmlspecialchars($this->t('The following add-on(s) must be enabled'));?>:<br />
    <ul>
      <?php $depend = isset($this->depend) ? $this->depend : null; $_foreach_var = $this->get('module')->getDependencyModules(); if (isset($_foreach_var)) { $this->dependArraySize=count($_foreach_var); $this->dependArrayPointer=0; } if (isset($_foreach_var)) foreach ($_foreach_var as $this->depend){ $this->dependArrayPointer++; ?><li >
        <a href="#<?php echo func_htmlspecialchars($this->get('depend')->getName());?>"><?php echo func_htmlspecialchars($this->get('depend')->getModuleName());?> (<?php echo func_htmlspecialchars($this->t('by'));?> <?php echo func_htmlspecialchars($this->get('depend')->getAuthorName());?>)</a>
        [
          <?php if ($this->get('depend')->getEnabled()): ?><span  class="good"><?php echo func_htmlspecialchars($this->t('enabled'));?></span><?php endif; ?>
          <?php if (!($this->get('depend')->getEnabled())): ?><span  class="none"><?php echo func_htmlspecialchars($this->t('disabled'));?></span><?php endif; ?>
        ]
      </li>
<?php } $this->depend = $depend; ?>
    </ul>
  </div><?php endif; ?>

  <?php if ($this->isCoreUpgradeNeeded($this->get('module'))): ?><div  class="note version error">
    <?php echo func_htmlspecialchars($this->t('The module version is incompatible with your core version and cannot be enabled'));?><br />
    <?php if ($this->isCoreUpgradeAvailable($this->get('module')->getMajorVersion())): ?><span >
      <?php echo func_htmlspecialchars($this->t('Please'));?> <a href="<?php echo func_htmlspecialchars($this->buildURL('upgrade','',array('version'=>$this->get('module')->getMajorVersion())));?>">upgrade core</a>
    </span><?php endif; ?>
  </div><?php endif; ?>

  <?php if ($this->isModuleUpgradeNeeded($this->get('module'))): ?><div  class="note version error">
    <?php echo func_htmlspecialchars($this->t('The module is available for older core versions only'));?>
  </div><?php endif; ?>

</div><?php endif; ?>
